<html><head><title></title></head>

<link href="http://www.southsaxons.com/sshs.css" rel="stylesheet" type="text/css" /><style>
 .opacityFont array(
 filter:alpha(opacity=75);
 -moz-opacity:.75; 
 opacity:.75; 
 ) 
 .opacity array(
 background-color: #FFF;
 filter:alpha(opacity=75);
 -moz-opacity:.75;
 opacity:.75;
 border: 1px solid #000;
 color: #000;
 )
 </style><body>
<?php
// Michael beeson was here lol this was hard
$db_host = 'localhost';
$db_user = 'pepgsou_admin';
$db_pwd = '_20pepg09';
$database = 'pepgsou_main';
$table = 'JL';

if (!mysql_connect($db_host, $db_user, $db_pwd))
    die("Can't connect to database");

if (!mysql_select_db($database))
    die("Can't select database");

// sending query
$result = mysql_query("SELECT * FROM {$table} WHERE Dept = 'Health And Physical Education'");
if (!$result) {
    die("Query to show fields from table failed");
}

$fields_num = mysql_num_fields($result);

echo "<table border='1'><tr>";
// printing table headers
for($i=0; $i<$fields_num; $i++) // OH FUC--
{
    $field = mysql_fetch_field($result);
    echo "<td>{$field->name}</td>";
}
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_row($result))
{
    echo "<tr>";

    // $row is array... foreach( .. ) puts every element
    // of $row to $cell variable
    foreach($row as $cell)
        echo "<td>$cell</td>";

    echo "</tr>\n";
}
mysql_free_result($result);
?>
</body></html>